from .opertype import CUSTOM

class AbstractOperator:

    def __init__(self,config,operType=CUSTOM):
        self.config = config
        self.operator_type = operType
        pass

    def doOpen(self):
        pass

    def doClose(self):
        pass

    def doProcess(self,*args,**kwargs):
        raise Exception("AbstractOperator doProcess(), please use your own doProcess function")
